﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="FeedBackManagement.aspx.cs" Inherits="HCFramework.FeedBack.FeedBackManagement" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div class="groupHeader">
    Feedback management
</div>
<asp:Panel ID="PanelGrid" runat="server">
    <telerik:RadGrid ID="RadGridMain" runat="server" Skin="Office2007" AutoGenerateColumns="False"
        OnItemCommand="RadGridMain_ItemCommand" OnPreRender="RadGridMain_PreRender" AllowFilteringByColumn="True"
        AllowPaging="True" AllowSorting="True" GridLines="None" AllowMultiRowSelection="True">
        <ClientSettings>
            <Selecting AllowRowSelect="True" />
        </ClientSettings>
        <MasterTableView CommandItemSettings-AddNewRecordText="Thêm mới" NoMasterRecordsText="No records.">
            <RowIndicatorColumn>
                <HeaderStyle Width="20px" />
            </RowIndicatorColumn>
            <ExpandCollapseColumn>
                <HeaderStyle Width="20px" />
            </ExpandCollapseColumn>
            <CommandItemSettings AddNewRecordText="Thêm mới" />
            <Columns>
                <telerik:GridClientSelectColumn UniqueName="column">
                </telerik:GridClientSelectColumn>
                <telerik:GridBoundColumn DataField="FeedBackID" UniqueName="FeedBackID" Visible="false">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Subject" HeaderText="Subject" UniqueName="Subject">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Content" HeaderText="Content" UniqueName="Content">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Name" HeaderText="Name" UniqueName="Name">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Email" HeaderText="Email" UniqueName="Email">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Username" HeaderText="Username" UniqueName="Username">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="IPAddress" HeaderText="IP" UniqueName="IPAddress">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="InsertDate" HeaderText="Date" UniqueName="InsertDate"
                    DataFormatString="{0:dd/MM/yyyy}" DataType="System.DateTime">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="IsReply" HeaderText="IsReply" UniqueName="IsReply">
                </telerik:GridBoundColumn>
                <telerik:GridHyperLinkColumn Text="Reply" DataNavigateUrlFields="FeedBackID" DataNavigateUrlFormatString="~/AdminTool/Email/SendEmail.aspx?FeedBackID={0}" Target="_blank">
                </telerik:GridHyperLinkColumn>
            </Columns>
            <CommandItemTemplate>
                <asp:Image ID="Image1" runat="server" ImageUrl="~/Image/add.gif" />
                <asp:LinkButton ID="LinkButton1" runat="server" CommandName="Them" AccessKey="n"
                    TabIndex="1">Insert</asp:LinkButton>
            </CommandItemTemplate>
        </MasterTableView>
    </telerik:RadGrid>
    <div style="padding-top: 10px">
        <asp:LinkButton ID="LinkButtonDelete" OnClientClick="return confirm('Are you sure?');"
            runat="server" CssClass="linkButton" OnClick="LinkButtonDelete_Click">Delete</asp:LinkButton>
    </div>
</asp:Panel>

</asp:Content>
